#pragma once

#include <string>

class HttpConnection
{
public:
    HttpConnection();
    ~HttpConnection();

    void SetKey(const std::string &apiKey);

    bool Post(const std::string &url, const std::string &data, std::string &response);
    bool Get(const std::string &url, std::string &response);

private:
    class Private;
    Private &p;
};
